package src.ee.ioc.smaug.testing;

import src.ee.ioc.smaug.fsm.*;
import src.ee.ioc.smaug.parser.*;
import java.io.*;

public class TestFSMPArser {

    public static void main(String[] args) {

     FiniteStateMachine fsm=FSMParser.createFSM(new File("moorepattermatching.xml"));

    fsm.setInString("babaabaabaab");
    fsm.runMachine();
    System.out.println(fsm.getInString()+"|"+fsm.getOutString());
    fsm.setInString("bbaabaaaaaba");
    fsm.runMachine();
    System.out.println(fsm.getInString()+"|"+fsm.getOutString());
    fsm.setInString("bbbaabbbaabb");
    fsm.runMachine();
    System.out.println(fsm.getInString()+"|"+fsm.getOutString());
    fsm.setInString("bbaabbaabaaa");
    
    }

}
